<?php
/*
 * Created on 2009-7-19
 *
 * Author: guobin@yizin.net
 */
global $header;
global $footer;
global $menu;

global $id;
global $email;
global $nickname;
global $description;

global $password;
global $password1;

global $city;
global $company;

global $error;

global $featureManager;
$header['title'] = '用户创建 - 用户管理';
$header['head'] = '';
$featureManager->apply("com.yizin.platform.admin.header", $header);
$menu['current'] = 'user.user';
$featureManager->apply("com.yizin.platform.admin.menu", $menu);
$featureManager->apply("com.yizin.platform.admin.footer", $footer);

?>
<?= $header['html'] ?>

<div class="ysi-container-C"><div class="ysi-container-CI">
	<h2>创建用户</h2>
    <form class="ysi-form" action="<?=REQUEST_BASE?>admin/user/user/create/" method="post">
    <fieldset>
      <div class="ysi-form-row">
        <div class="ysi-form-label"><label for="username">用户名</label></div>
        <div class="ysi-form-field"><input class="ysi-form-text" type="text" size="16" value="<?=$id?>" id="username" name="id" /><?php if(!$error['id']) {?><span class="ysi-form-note">字母数字组合，字母开头，4-20字符</span><?php } else {?><span class="ysi-form-error"><?=$error['id']?></span><?php } ?></div>
        <div class="clear"></div>
      </div>
      <div class="ysi-form-row">
        <div class="ysi-form-label"><label for="email">Email</label></div>
        <div class="ysi-form-field"><input class="ysi-form-text" type="text" size="16" value="<?=$email?>" id="email" name="email" /><?php if(!$error['email']) {?><span class="ysi-form-note"></span><?php } else {?><span class="ysi-form-error"><?=$error['email']?></span><?php } ?></div>
        <div class="clear"></div>
      </div>
      <div class="ysi-form-row">
        <div class="ysi-form-label"><label for="nickname">昵称</label></div>
        <div class="ysi-form-field"><input class="ysi-form-text" type="text" size="16" value="<?=$nickname?>" id="nickname" name="nickname" /><?php if(!$error['nickname']) {?><span class="ysi-form-note">4-20字符</span><?php } else {?><span class="ysi-form-error"><?=$error['nickname']?></span><?php } ?></div>
        <div class="clear"></div>
      </div>
      <div class="ysi-form-row">
        <div class="ysi-form-label"><label for="description">个人介绍</label></div>
        <div class="ysi-form-field"><input class="ysi-form-text ysi-form-text-long" type="text" size="16" value="<?=$description?>" id="description" name="description" /><?php if(!$error['description']) {?><span class="ysi-form-note"></span><?php } else {?><span class="ysi-form-error"><?=$error['description']?></span><?php } ?></div>
        <div class="clear"></div>
      </div>
      <div class="ysi-form-row">
        <div class="ysi-form-label"><label for="password">密码</label></div>
        <div class="ysi-form-field"><input class="ysi-form-text" type="password" size="16" value="<?=$password?>" id="password" name="password" /><?php if(!$error['description']) {?><span class="ysi-form-note">6-30字符</span><?php } else {?><span class="ysi-form-error"><?=$error['password']?></span><?php } ?></div>
        <div class="clear"></div>
      </div>
      <div class="ysi-form-row">
        <div class="ysi-form-label"><label for="retype-password">确认密码</label></div>
        <div class="ysi-form-field"><input class="ysi-form-text" type="password" size="16" value="<?=$password1?>" id="retype-password" name="password1" /><?php if($error['password1']){ ?>echo <span class="ysi-form-error"><?php echo $error['password1'];?></span><?php } ?></div>
        <div class="clear"></div>
      </div>
      <div class="ysi-form-row">
        <div class="ysi-form-label"><label for="city">居住城市</label></div>
        <div class="ysi-form-field"><input class="ysi-form-text" type="text" size="16" value="<?=$city?>" id="city" name="city" /><?php if(!$error['city']) {?><span class="ysi-form-note"></span><?php } else {?><span class="ysi-form-error"><?=$error['city']?></span><?php } ?></div>
        <div class="clear"></div>
      </div>
      <div class="ysi-form-row">
        <div class="ysi-form-label"><label for="company">公司</label></div>
        <div class="ysi-form-field"><input class="ysi-form-text" type="text" size="16" value="<?=$company?>" id="company" name="company" /><?php if(!$error['company']) {?><span class="ysi-form-note"></span><?php } else {?><span class="ysi-form-error"><?=$error['company']?></span><?php } ?></div>
        <div class="clear"></div>
      </div>
      <div class="ysi-form-row ysi-form-indent">
        <div class="ysi-form-field">
          <input class="ysi-form-submit" type="submit" value="提交" />
        </div>
        <div class="clear"></div>
      </div>
    </fieldset>
    <div class="clear-1"></div>
    </form>
</div></div>

<div class="ysi-container-L">
<?= $menu['html'] ?>
</div>

<?= $footer['html'] ?>
